package com.qf.erp_system_admin.service.impl;

import com.qf.erp_system_admin.entity.Goods;
import com.qf.erp_system_admin.mapper.GoodsMapper;
import com.qf.erp_system_admin.service.GoodsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.List;

/**
 * --- 天道酬勤 ---
 *
 * @author QiaoZhenWei
 * @date 2024/7/23
 * @desc --- 代码敲烂 月薪过万 ---
 */
@Service
public class GoodsServiceImpl implements GoodsService {
	@Autowired
	private GoodsMapper goodsMapper;

	@Override
	public List<Goods> findAll(HashMap<String, String> map) {
		return goodsMapper.findAll(map);
	}

	@Override
	public boolean del(int gdId) {
		return goodsMapper.del(gdId);
	}

	@Override
	public boolean add(HashMap<String, String> map) {
		return goodsMapper.add(map);
	}

	@Override
	public List<String> findCategory() {
		return goodsMapper.findCategory();
	}




}
